package com.enzoism.springboot.dive;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
@ServletComponentScan("com.enzoism.springboot.dive.filter")
public class DiveMainApplication {

    public static void main(String[] args) {
        SpringApplication.run(DiveMainApplication.class, args);
    }

    @GetMapping("/")
    public String index(){
        return "Hello,World";
    }
}
